using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Tongiao.Config;     
using Tongiao.Entity;
namespace Tongiao.ManagerBase
{
                

     public abstract class Tg_NewsInfosManagerBase
    {
        public Tg_NewsInfosManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity Insert(Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity Update(Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.Update(obj);             
        }
 
 
        public Tg_NewsInfosEntity Delete(Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByAbsolute (Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"Absolute");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Absolute 
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByAbsolute (string Absolute )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Absolute = Absolute;  
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"Absolute");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CategoryId duoc set trong object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByCategoryId (Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"CategoryId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CategoryId 
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByCategoryId (Guid CategoryId )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CategoryId = CategoryId;  
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"CategoryId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByContentBody (Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"ContentBody");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ContentBody 
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByContentBody (string ContentBody )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.ContentBody = ContentBody;  
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"ContentBody");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByCreatedBy (Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy 
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByCreatedBy (string CreatedBy )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CreatedBy = CreatedBy;  
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByCreatedDate (Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate 
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByCreatedDate (DateTime CreatedDate )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CreatedDate = CreatedDate;  
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteById (Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id 
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteById (Guid Id )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Id = Id;  
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByPhoto (Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"Photo");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Photo 
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByPhoto (string Photo )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Photo = Photo;  
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"Photo");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByTitle (Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"Title");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Title 
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByTitle (string Title )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Title = Title;  
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"Title");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByUpdatedBy (Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy 
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByUpdatedBy (string UpdatedBy )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.UpdatedBy = UpdatedBy;  
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByUpdatedDate (Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate 
        /// </summary>
        /// <returns>Tg_NewsInfosEntity</returns>
        public Tg_NewsInfosEntity DeleteByUpdatedDate (DateTime UpdatedDate )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.UpdatedDate = UpdatedDate;  
            return (Tg_NewsInfosEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public Tg_NewsInfosEntity Select(Tg_NewsInfosEntity obj)
        { 
            return (Tg_NewsInfosEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Tg_NewsInfosEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Tg_NewsInfosEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new Tg_NewsInfosEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new Tg_NewsInfosEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Tg_NewsInfosEntity> SelectAllLST()
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Tg_NewsInfosEntity()),new Tg_NewsInfosEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Tg_NewsInfosEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Tg_NewsInfosEntity(),option),new Tg_NewsInfosEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAbsolute (Tg_NewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"Absolute");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAbsolute (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Absolute",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByAbsoluteLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Absolute"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByAbsoluteLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Absolute",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAbsolute (string Absolute )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Absolute = Absolute;  
            return Adapter.SelectByField(obj,"Absolute");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAbsolute (string Absolute, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Absolute = Absolute;  
            return Adapter.SelectByField(obj,"Absolute",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByAbsoluteLST (string Absolute )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Absolute = Absolute;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Absolute"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByAbsoluteLST (string Absolute, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Absolute = Absolute;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Absolute",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CategoryId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCategoryId (Tg_NewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"CategoryId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CategoryId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCategoryId (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CategoryId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CategoryId duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByCategoryIdLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CategoryId"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CategoryId duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByCategoryIdLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CategoryId",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CategoryId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCategoryId (Guid CategoryId )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CategoryId = CategoryId;  
            return Adapter.SelectByField(obj,"CategoryId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CategoryId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCategoryId (Guid CategoryId, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CategoryId = CategoryId;  
            return Adapter.SelectByField(obj,"CategoryId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CategoryId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByCategoryIdLST (Guid CategoryId )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CategoryId = CategoryId;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CategoryId"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CategoryId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByCategoryIdLST (Guid CategoryId, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CategoryId = CategoryId;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CategoryId",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByContentBody (Tg_NewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"ContentBody");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByContentBody (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ContentBody",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByContentBodyLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ContentBody"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByContentBodyLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ContentBody",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByContentBody (string ContentBody )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.ContentBody = ContentBody;  
            return Adapter.SelectByField(obj,"ContentBody");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByContentBody (string ContentBody, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.ContentBody = ContentBody;  
            return Adapter.SelectByField(obj,"ContentBody",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByContentBodyLST (string ContentBody )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.ContentBody = ContentBody;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ContentBody"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByContentBodyLST (string ContentBody, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.ContentBody = ContentBody;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ContentBody",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (Tg_NewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByCreatedByLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByCreatedByLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedBy",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByCreatedByLST (string CreatedBy )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByCreatedByLST (string CreatedBy, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (Tg_NewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByCreatedDateLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByCreatedDateLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedDate",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByCreatedDateLST (DateTime CreatedDate )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByCreatedDateLST (DateTime CreatedDate, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Tg_NewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByIdLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByIdLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Id",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Guid Id )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Guid Id, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByIdLST (Guid Id )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Id = Id;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByIdLST (Guid Id, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Id = Id;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhoto (Tg_NewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"Photo");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhoto (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Photo",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByPhotoLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Photo"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByPhotoLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Photo",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhoto (string Photo )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Photo = Photo;  
            return Adapter.SelectByField(obj,"Photo");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhoto (string Photo, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Photo = Photo;  
            return Adapter.SelectByField(obj,"Photo",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByPhotoLST (string Photo )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Photo = Photo;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Photo"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByPhotoLST (string Photo, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Photo = Photo;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Photo",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTitle (Tg_NewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"Title");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTitle (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Title",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByTitleLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Title"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByTitleLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Title",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTitle (string Title )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Title = Title;  
            return Adapter.SelectByField(obj,"Title");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTitle (string Title, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Title = Title;  
            return Adapter.SelectByField(obj,"Title",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByTitleLST (string Title )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Title = Title;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Title"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByTitleLST (string Title, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.Title = Title;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Title",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (Tg_NewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByUpdatedByLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByUpdatedByLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedBy",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByUpdatedByLST (string UpdatedBy )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByUpdatedByLST (string UpdatedBy, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (Tg_NewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByUpdatedDateLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectByUpdatedDateLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedDate",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByUpdatedDateLST (DateTime UpdatedDate )
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_NewsInfosEntity> SelectByUpdatedDateLST (DateTime UpdatedDate, SelectOptions option)
        { 
            Tg_NewsInfosEntity obj = new Tg_NewsInfosEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate",option),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectWithConditionLST (Tg_NewsInfosEntity obj)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new Tg_NewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Tg_NewsInfosEntity></returns>
        public List<Tg_NewsInfosEntity> SelectWithConditionLST (Tg_NewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<Tg_NewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new Tg_NewsInfosEntity());
        }

}
}
